#include "Driver.h"


#pragma INITCODE
extern "C" NTSTATUS DriverEntry(
								IN PDRIVER_OBJECT	pDriverObject,
								IN PUNICODE_STRING	pRegistryPath)
{
	NTSTATUS status;
	KdPrint(("zp Enter DriverEntry"));
	
	pDriverObject->DriverUnload = UnLoadRoutine;
	pDriverObject->MajorFunction[IRP_MJ_CREATE] = DispatchRoutine;
	pDriverObject->MajorFunction[IRP_MJ_CLOSE]  = DispatchRoutine;
	pDriverObject->MajorFunction[IRP_MJ_WRITE]  = DispatchRoutine;
	pDriverObject->MajorFunction[IRP_MJ_READ]	= DispatchRoutine;
	
	status = CreateDevice( pDriverObject );
	KdPrint(( "zp DriverEntry end" ));
	
	return status;
}